﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;

namespace DC.Utils
{
    public partial class InputBox : Skin_DevExpress
    {
        public InputBox()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 点击了哪个按钮，确定为1，其它为0
        /// </summary>
        public int ButtonClick = 0;
        public string Content = string.Empty;
        public string Title = "InputBox";
        public string MessageText = "Input Something:";


        private void InputBox_FormClosing(object sender, FormClosingEventArgs e)
        {
            Content = skinTextBox1.Text;
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            ButtonClick = 1;
            this.Close();
        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void InputBox_Load(object sender, EventArgs e)
        {
            Text = Title;
            skinLabel1.Text = MessageText;
        }
    }
}
